﻿<%@ Page Language="C#" MasterPageFile="~/Member/UserManage.master" EnableEventValidation="false"
    ValidateRequest="false" AutoEventWireup="true" CodeFile="SupplyAdd.aspx.cs" Inherits="Member_Trade_SupplyAdd"
    Title="发布供应信息" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContInfo" runat="server">

    <script language="javascript" src="../../js/Industry.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/calendar.js"></script>

    <script type="text/javascript" language="javascript">
        function textValue() {
            var c = document.all('ctl00_ContInfo_dropUnit');
            var danwei = c.options[c.selectedIndex].value;
            ctl00_ContInfo_danwei.innerHTML = "元/" + danwei;
            ctl00_ContInfo_gonghuo.innerHTML = danwei;
            ctl00_ContInfo_zuixiaoqi.innerHTML = danwei;

        }   
    </script>

    <div class="inkg mar_top">
        <form id="form1" action="">
        <asp:HiddenField ID="txtSortB" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="txtSortM" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="txtSortS" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="txtSortF" runat="server"></asp:HiddenField>
        <asp:HiddenField ID="txtSortW" runat="server"></asp:HiddenField>
        <strong class="inkgt">发布供应信息</strong>
        <div class="intip mar_top">
            <strong class="intipt"><span id="Htab_on2" onclick="document.getElementById('important_note').style.display=='block'||document.getElementById('important_note').style.display==''?document.getElementById('important_note').style.display='none':document.getElementById('important_note').style.display='block'; document.getElementById('Htab_on2').className=='Htab_on2'?document.getElementById('Htab_on2').className='Htab_off2':document.getElementById('Htab_on2').className='Htab_on2'"
                style="cursor: hand">温馨提示</span> </strong>
            <p>
                为了让买家能更精确找到您的产品，您可以做以下几步提高您的信息精度，获得更好的排名：</p>
            <p>
                1、一条信息只发布一个产品；</p>
            <p>
                2、选择与您产品符合的类目。</p>
            <p>
                3、发布的信息带图且填写产品属性。</p>
            <p>
                4、为了提高信息质量，请您注意不要发布重复信息，重复信息将无法成功发布！</p>
            <i class="lt"></i><i class="lb"></i>
        </div>
        <asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label>
        <a name="flagKeyword"></a>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        基本信息 <span class="f_c00">*</span>为必填项
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="16%" class="tblt">
                        产品名称：<span class="f_c00">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtName" MaxLength="20" runat="server" Width="200px"></asp:TextBox>
                        <div id="txt0">
                        </div>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品关键字：<span class="f_c00">*</span>
                    </td>
                    <td>
                        <asp:TextBox ID="txtKey" MaxLength="16" runat="server" Width="200px"></asp:TextBox>
                        <div id="txt1">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品所属类目：<span class="f_c00">*</span>
                    </td>
                    <td>
                        <span>
                            <select id="SortB" name="SortB" runat="server" size="8" style="width: 132px">
                            </select>
                            <select id="SortM" name="SortM" runat="server" size="8" style="width: 132px">
                            </select>
                            <select id="SortS" name="SortS" runat="server" size="8" style="width: 132px">
                            </select>
                    <select id="SortF" name="SortF" runat="server" size="8" style="width: 132px">
                    </select>
                    <select id="SortW" name="SortW" runat="server" size="8" style="width: 132px">
                    </select>
                        </span>
                        <div id="txt02">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        所属商铺目录：
                    </td>
                    <td>
                        <span>
                            <asp:DropDownList ID="dropProType" runat="server">
                            </asp:DropDownList>
                        </span><a href="../ProType/ProTypeList.aspx" style="color: Gray">新建目录</a><br />
                        <pre style="color: Gray">
您发布的供应信息将按照商选择的铺目录展现在商铺上，让买家在浏览您的商铺时，更快捷的浏览商机。</pre>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        有效期：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="RadioTime" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
                            <asp:ListItem Value="10">10天</asp:ListItem>
                            <asp:ListItem Value="20">20天</asp:ListItem>
                            <asp:ListItem Value="30">1个月</asp:ListItem>
                            <asp:ListItem Value="90">3个月</asp:ListItem>
                            <asp:ListItem Selected="True" Value="180">6个月</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
            </tbody>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        详细信息
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="16%" class="tblt">
                        产 地：
                    </td>
                    <td>
                        <span>
                            <asp:TextBox ID="txtPlace" MaxLength="40" runat="server" Width="200px"></asp:TextBox></span>
                        <div id="txt2">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        品 牌：
                    </td>
                    <td>
                        <span>
                            <asp:TextBox ID="txtBrand" MaxLength="40" runat="server" Width="200px"></asp:TextBox></span>
                        <div id="txt3">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        型 号：
                    </td>
                    <td>
                        <span>
                            <asp:TextBox ID="txtModel" MaxLength="40" runat="server" Width="200px"></asp:TextBox></span>
                        <div id="txt4">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        详细说明：
                    </td>
                    <td>
                        <FCKeditorV2:FCKeditor ID="txtContent" runat="server" BasePath="~/Control/fckeditor/"
                            ToolbarSet="Basic" Height="300" Width="639">
                        </FCKeditorV2:FCKeditor>
                        <br />
                        <pre style="color: Gray"> 1、建议您描述以下方面：产品的性能及优点、用途、售后服务、包装等；
<br /> 2、为避免不必要的纠纷，请使用本企业图片；</pre>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品图片：
                    </td>
                    <td>
                        <asp:HiddenField ID="ImgUrl1" runat="server" />
                        <a href="" id="txturldz" target="_blank">
                            <img src="../../Images/System/wutu1.gif" alt="" name="ImgUrl" width="98" height="98"
                                border="0" id="ImgUrl" runat="server" /></a><br />
                        <input id="txtupload" type="button" value="上传" onclick="return rowTest()" /><br />
                        <div id="rowTest" style="display: none;">
                            <iframe name="tag" src="../Tool/Upload.html" style="width: 550px; height: 120px"
                                frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">
                            </iframe>
                        </div>
                    </td>
                </tr>
            </tbody>
        </table>
        <a name="flagtiaojian"></a>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        交易条件&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建议详细填写交易条件，否则买家无法为您的产品下订单
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="16%" class="tblt">
                        计量单位：
                    </td>
                    <td>
                        <asp:DropDownList ID="dropUnit" runat="server" onchange="textValue();">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        产品单价：
                    </td>
                    <td>
                        <div style="float: left; overflow: hidden; margin-right: 20px;">
                            <span>
                                <asp:TextBox ID="txtPrice" MaxLength="7" runat="server" ToolTip="产品单价只能输入数字" Width="75px"
                                    Text="1"></asp:TextBox></span><div id="danwei" runat="server">
                                        元/单位</div>
                        </div>
                        <div id="txt5" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        供货总量：
                    </td>
                    <td>
                        <div style="float: left; overflow: hidden; margin-right: 20px;">
                            <span>
                                <asp:TextBox onkeyup="if(event.keyCode!=37&&event.keyCode!=39)value=value.replace(/\D/g,'');"
                                    ID="txtQuantity" MaxLength="7" ToolTip="供货总量只能输入整数,而且小于等于9999999" runat="server"
                                    Width="75px" Text="10"></asp:TextBox>
                            </span>
                            <div id="gonghuo" runat="server">
                                单位
                            </div>
                        </div>
                        <div id="txt6" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        最小起定量：
                    </td>
                    <td>
                        <div style="float: left; overflow: hidden; margin-right: 20px;">
                            <span>
                                <asp:TextBox onkeyup="if(event.keyCode!=37&&event.keyCode!=39)value=value.replace(/\D/g,'');"
                                    MaxLength="7" ID="txtMinimum" ToolTip="最小起定量只能输入数字" runat="server" Width="75px"
                                    Text="1"></asp:TextBox></span>
                            <div id="zuixiaoqi" runat="server">
                                单位
                            </div>
                        </div>
                        <div id="txt7" style="color: Gray; float: left">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        发货期限：
                    </td>
                    <td>
                        <asp:RadioButtonList ID="radlDeadline" runat="server" RepeatDirection="Horizontal"
                            RepeatLayout="Flow">
                            <asp:ListItem Value="1">1天</asp:ListItem>
                            <asp:ListItem Selected="True" Value="3">3天</asp:ListItem>
                            <asp:ListItem Value="5">5天</asp:ListItem>
                            <asp:ListItem Value="10">10天</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                </tr>
            </tbody>
        </table>
        <table border="0" cellpadding="0" cellspacing="0" class="addtb">
            <thead>
                <tr>
                    <td colspan="2">
                        联系方式的确认与修改&nbsp;&nbsp;&nbsp;&nbsp;若有误,您发布的信息将无法通过审核,<a target="_blank" href="../UserInfo/LinkManInfo.aspx"
                            style="color: Red; text-decoration: underline">点此修改</a>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td width="16%" class="tblt">
                        姓名：
                    </td>
                    <td>
                        <asp:Label ID="UserName" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        电话：
                    </td>
                    <td>
                        <asp:Label ID="UserTelephone" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        QQ：
                    </td>
                    <td>
                        <asp:Label ID="UserChuanzhen" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        公司名称：
                    </td>
                    <td>
                        <asp:Label ID="CompanyName" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="tblt">
                        Email：
                    </td>
                    <td>
                        <asp:Label ID="Email" runat="server" Text=""></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" align="center" style="height: 45px;">
                        <asp:Button ID="btnSave" runat="server" Style="cursor: hand" Text="同意服务条款，我要发布" OnClick="btnSave_Click"
                            CssClass="i_button" />
                    </td>
                </tr>
            </tbody>
        </table>
        <%--</div>--%>
        </form>
    </div>

    <script language="javascript" type="text/javascript">
        setup(1);
    </script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript" src="../js/Supply.js"></script>

</asp:Content>
